package com.ruoyi.logistics.mapper;

import java.util.List;

import com.ruoyi.logistics.domain.QcLogisticsTracking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 物流追踪Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-24
 */
@Mapper
public interface QcLogisticsTrackingMapper {
    /**
     * 查询物流追踪
     *
     * @param id 物流追踪主键
     * @return 物流追踪
     */
    public QcLogisticsTracking selectQcLogisticsTrackingById(Long id);

    /**
     * 查询物流追踪列表
     *
     * @param qcLogisticsTracking 物流追踪
     * @return 物流追踪集合
     */
    public List<QcLogisticsTracking> selectQcLogisticsTrackingList(QcLogisticsTracking qcLogisticsTracking);

    /**
     * 新增物流追踪
     *
     * @param qcLogisticsTracking 物流追踪
     * @return 结果
     */
    public int insertQcLogisticsTracking(QcLogisticsTracking qcLogisticsTracking);

    /**
     * 批量将数据存储到数据中
     *
     * @param list
     * @return
     */
    public int batchInsertQcLogisticsTracking(List<QcLogisticsTracking> list);

    /**
     * 修改物流追踪
     *
     * @param qcLogisticsTracking 物流追踪
     * @return 结果
     */
    public int updateQcLogisticsTracking(QcLogisticsTracking qcLogisticsTracking);

    public int updateQcLogisticsTrackingEsStatus(@Param("ids") List<Long> ids,@Param("status") Integer status);

    /**
     * 删除物流追踪
     *
     * @param id 物流追踪主键
     * @return 结果
     */
    public int deleteQcLogisticsTrackingById(Long id);

    /**
     * 批量删除物流追踪
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQcLogisticsTrackingByIds(Long[] ids);
}
